package com.iemes.mapper;

import com.iemes.entity.*;
import com.iemes.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface DeviceMapper extends BaseMapper {
    List<DeviceFormMap> getDevice(@Param("name") String name);

    List<DeviceTypeFormMap> getDeviceType();

    List<DeviceTypeFormMap> getDeviceTypeName();

    List<DeviceTypeFormMap> getTypeByName(@Param("name") String name);

    List<DeviceCheckFormMap> getDeviceCheck();

    List<DeviceCheckFormMap> getDeviceCheckByEmp(@Param("name") String name);

    List<DeviceFaultFormMap> getDeviceFault();

    List<DeviceFaultFormMap> getDeviceFaultByName(@Param("name") String name);

    List<DeviceMaintainFormMap> getDeviceMaintain();

    //    新增设备维修查询
    List<DeviceMaintainFormMap> getDeviceMaintainInfo();

    List<DeviceMaintainFormMap> getDeviceMaintainByName(@Param("name") String name);

    //    新增设备维修查询
    List<DeviceMaintainFormMap> getDeviceMaintainInfoByName(@Param("name") String name);

    //获取供应商
    List<ClientinfoMap> getClient();

    List<DeviceFormMap> getDeviceName();

    //更新数据
    int upDevice(@Param("deviceMaintainId") String deviceMaintainId,@Param("deviceMaintainstate") String deviceMaintainstate, @Param("deviceMaintainresult") String deviceMaintainresult);

    //获取关联数据
    List<DevOperationFormMap> getdo(@Param("id") String id);

    //添加数据
    int inserData(@Param("deviceCheckId")String deviceCheckId,@Param("deviceName")String deviceName,@Param("deviceCheckEmp")String deviceCheckEmp,@Param("deviceCheckDate")String deviceCheckDate,@Param("deviceCheckType")String deviceCheckType);


    //获取设备保养明细信息
    List<DeviceFaultDetailMap> getFaultDetailById(@Param("id") String id);

    //获取所有设备信息
    List<DeviceFormMap> getDeviceInfo();

    List<DeviceFormMap> getDeviceInfoByName(@Param("name") String name);

    //根据设备编码获取设备种类信息
    DeviceTypeFormMap getTypeSpecByCode(@Param("id") String id);

    //获取设备关联保养部位
    List<DevicePartsMap>  getPartsByTypeId(@Param("id") String id);

    //获取设备保养部位
    DeviceMaintenancePartsMap getPartsById(@Param("id") String id);

    //获取所有设备信息
    List<DeviceFormMap> getDeviceManage(@Param("paramName") String paramName,@Param("paramValue") String paramValue);

    //获取所有设备信息
    DeviceFormMap getDeviceManageByCode(@Param("code") String code);
}
